package com.yudedu.hospital.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import com.yudedu.hospital.entity.User;
import com.yudedu.hospital.entity.UserLogin;

@Service
public interface UserMapper {
	
	void edit(@Param("id")int user_id,@Param("name")String name,@Param("sex")String sex,@Param("idCard")String idCard,@Param("birthday")String birthday,@Param("userPhone")String userPhone,@Param("address")String address,
			@Param("QQ")String QQ,@Param("zipCode")String zipCode,@Param("email")String email);

	User query(int id);

	void insert(@Param("id")int user_id,@Param("name")String name,@Param("sex")String sex,@Param("idCard")String idCard,@Param("birthday")String birthday,@Param("userPhone")String userPhone,@Param("address")String address,
			@Param("QQ")String QQ,@Param("zipCode")String zipCode,@Param("email")String email);


	void editPicture(@Param("pictureUrl")String pictureUrl,@Param("id")int id);;
	
	void editname(@Param("name")String name,@Param("id")int id);
	void insertname(@Param("name")String name,@Param("id")int user_id);
	
	void editsex(@Param("sex")String sex,@Param("id")int id);
	
	void editbirthday(@Param("birthday")String birthday,@Param("id")int id);
	void editidCard(@Param("idCard")String idCard,@Param("id")int id);
	void editphone(@Param("userPhone")String userPhone,@Param("id")int id);
	void editqq(@Param("QQ")String QQ,@Param("id")int id);
	void editemail(@Param("email")String email,@Param("id")int id);
	void editaddress(@Param("address")String address,@Param("id")int id);
	void editphones(@Param("userPhones")String userPhones,@Param("id")int id);
	}

